#ifndef __TCP_CLIENT_H__
#define __TCP_CLIENT_H__
//基于tcp编程流程的客户端

#include <string>

class IpAddressPort;    //<类的前置声明
class Msg;  

class TcpClient {
private:
    int m_sfd;
public:
    TcpClient(const IpAddressPort&);
    ~TcpClient();
    int SendMsg(const std::string& msg);
    Msg RecvMsg();

    int GetSfd() const;

};

#endif